Chemical computer